﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Wicresoft.UnifyShow.Portal
{
    public abstract class WidgetBase
    {
        //parent page controller
        public string ParentController { get; set; }

        //parent page action
        public string ParentAction { get; set; }

        //siteid
        public string SiteID { get; set; }

        //businessSystemId
        public string BusinessSytemID { get; set; }

        //lazyload flag
        public bool LazyLoad { get; set; }

        //target controller , always widget
        public string TargetController { get { return "Widget"; } }

        //target action , should be override
        public abstract string TargetAction { get; }

        //how to buildrequestParam should be override
        public abstract MvcHtmlString BuildRequestParam();

        public abstract string AjaxDataType { get; }

    }
}